<%-- 
    Document   : insuranceregi
    Created on : Jun 3, 2014, 4:21:13 AM
    Author     : Satyapal
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html lang="true">

<%

                         String profPic=(String)session.getAttribute("profPic");
                         String firstName =(String)session.getAttribute("firstName");
                         String lastName=(String)session.getAttribute("lastName");
                         String id=(String)session.getAttribute("id");
                         String emailId=(String)session.getAttribute("emailId");
                         String password=(String)session.getAttribute("password");
                         String profileCompletion=(String)session.getAttribute("profileCompletion");
                         String mobileNumber=(String)session.getAttribute("mobileNumber");
                         String middelName=(String)session.getAttribute("middelName");
                         String address=(String)session.getAttribute("address");
                         String gender=(String)session.getAttribute("gender");
                         String city=(String)session.getAttribute("city");
                         String CountryState=(String)session.getAttribute("CountryState");
                         String contry=(String)session.getAttribute("contry");

                         request.setAttribute("firstName",firstName);
                         request.setAttribute("lastName",lastName);
                         request.setAttribute("emailId",emailId);
                         request.setAttribute("mobileNumber",mobileNumber);


                          String format="";

                          if(firstName!=null){

                       
                        String temp=firstName+lastName;

                        if(temp.length()<15){
                                format= " "+firstName+" "+lastName;
                            }
                        else{
                                format=" "+firstName+" ";
                            }


                    }
                        

       String data="";

       if(firstName==null){

                    data="<li><a href=\"login.jsp\">Login</a></li> <li><a href=\"register.jsp\">Sign Up</a></li></ul></nav></div></div>";
           }
       else{
                    data="<li><a href=\"profile.jsp\">"+format+"<br> Profile</a></li><li><a href=\"Logout.jsp\">Logout</a></li></ul></nav></div></div>";
           }


%>

<jsp:include page="header.jsp"/>

<%
    out.print(data);
%>


<%

        String copyfirstName=(String)session.getAttribute("copyfirstName");
        String copylastName=(String)session.getAttribute("copylastName");
        
        String activationCode=(String)session.getAttribute("activationCode");
        String message="";

        if(copyfirstName==null){
                message="User ";
                out.print("<title>Error</title>");
                session.setAttribute("message","1");
                String  url[]=request.getRequestURI().split("/");
                String pageRedir=url[2];
                session.setAttribute("pageRedir",pageRedir);
                response.sendRedirect("login.jsp");

            }
        else{
                message=copyfirstName.substring(0,1).toUpperCase()+copyfirstName.substring(1);
                out.print("<title>"+copyfirstName.substring(0,1).toUpperCase()+copyfirstName.substring(1)+"-Apply Insurace</title>");
            }

%>


<div style="position:relative;width: auto;z-index: 10000;">
    <div id="cssmenu" style="background-color: black;">
     <section class="innerpages">
         <div class="grid_12" style="background-image: url('commonfiles/images/satyapal.jpg'); width:100%;">
             <h1><%
             out.print(message+" Fill Following Form Inorder To Apply For Insurance..");
            %> </h1>
         </div>
     </section>
</div>
</div>


<div class="block2">
  <div class="container_12">
    <!--==============================content================================-->
    <section class="content">
      <div class="wrapper projects">
        <div class="row clearfix">
          <article class="grid_18">
            <div class="post">
                <br>
                <div class="clearfix">
              <ul id="commentform" class="hireform commentform">

                  <iframe width="640" height="1235" src="insurenceStep1.jsp" frameborder="0" style="margin-left: -73px;"></iframe>

              </ul>
            </div>

            </div>
            <div class="related-post clearfix">

            </div>


          </article>
            <br>
          <article class="grid_14">

            <div class="widget">
              <h2 class="widget-title">Insurance For</h2>
              <div id="tabs">
                <ul>
                  <li><a href="#tabs-1">Car</a></li>
                  <li><a href="#tabs-2">Auto</a></li>
                  <li><a href="#tabs-3">Transport</a></li>
                </ul>
                <div id="tabs-1"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
                  incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
                  exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div>
                <div id="tabs-2"> Phasellus mattis tincidunt nibh. Cras orci urna, blandit id, pretium vel, aliquet
                  ornare, felis. Maecenas scelerisque sem non nisl. Fusce sed lorem in enim dictum
                  bibendum.</div>
                <div id="tabs-3"> Nam dui erat, auctor a, dignissim quis, sollicitudin eu, felis. Pellentesque nisi
                  urna, interdum eget, sagittis et, consequat vestibulum, lacus. Mauris porttitor
                  ullamcorper augue.</div>
              </div>
            </div>
            <div class="widget">
              <h3 class="widget-title">offers on insurance</h3>
              <div id="accordion">
                <h3>New vehicle</h3>
                <div> Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</div>
                <h3>Old Vehicle</h3>
                <div> Phasellus mattis tincidunt nibh.</div>
                <h3> Transport</h3>
                <div> Nam dui erat, auctor a, dignissim quis.</div>
              </div>
            </div>
           <div class="widget">
              <h2 class="widget-title">customer review</h2>
              <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur eu risus lorem, ut placerat nisl.</p>
            </div>
            <div class="widget">
              <h2 class="widget-title">Review</h2>
              <iframe src="http://player.vimeo.com/video/29309724?title=0&amp;color=FF5050" width="100%"  height="200px" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
            </div>
          </article>
        </div>
      </div>
    </section>
  </div>
</div>


<script type="text/javascript" src="commonfiles/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="commonfiles/js/superfish.js"></script>

<script type="text/javascript" src="commonfiles/js/jquery.isotope.min.js"></script>
<script type="text/javascript" src="commonfiles/js/contact.js"></script>
<script type="text/javascript" src="commonfiles/js/jquery.carouFredSel-6.1.0-packed.js"></script>
<script type="text/javascript" src="commonfiles/js/touchTouch.jquery.js"></script>
<script type="text/javascript" src="commonfiles/js/jquery-ui-1.8.24.custom.min.js"></script>

<jsp:include page="footer.jsp"/>


</html:html>